import Vue from 'vue'
import Vuex from 'vuex'
import { Tab, Tabs } from 'vant';
import {resStore} from './module/resModule'
import {searchModule} from './module/searchModule'
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    hot_data:[],
    // 音乐控件是否显示
    ismusic:false,
    isbofang:true
  },
  mutations: {
    set_hot_data(state,data){
        state.hot_data=data;
    },
    setMusic(state,data){
      state.ismusic = data
    },
    setbofang(state,data){
      state.isbofang = data
    },
  },
  actions: {
  },
  getters:{
    isbofang: state => state.isbofang
  },
  modules: {
    resStore,searchModule
  }
})
